package com.dy.lock.screen.dao.impl;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.OrderDao;
import com.dy.lock.screen.pojo.OrderInfo;

@Repository("orderDao")
public class OrderDaoImpl extends BaseDaoImpl<OrderInfo, String> implements
		OrderDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.OrderMapper";
	}

	@Override
	public OrderInfo queryByPrimaryKey(String orderId) {
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".selectByPrimaryKey", orderId);
	}

	@Override
	public OrderInfo queryOrderDetail(OrderInfo info) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryOrderDetail", info);
	}

}
